package com.leyou;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

/**
 * @author LT
 * @version 1.0.0
 * @ClassName LyGateway.java
 * @Description TODO 服务网关启动类
 * @createTime 2020年04月28日 11:57:00
 */
// @SpringBootApplication
// @EnableDiscoveryClient
// @EnableHystrix
@SpringCloudApplication  // 这个注解 =  @SpringBootApplication + @EnableDiscoveryClient + @EnableHystrix
public class LyGateway {
    public static void main(String[] args) {
        SpringApplication.run(LyGateway.class, args);
    }
}
